'use strict';

function get_integer_interval_2(number_a, number_b) {
  let collection=[];
  if (number_a==number_b&&number_a%2==0)
    {
      collection.push(number_a);
    }
  if(number_a==number_b&&number_a%2!=0) 
    {collection=[];}
  if(number_a<number_b)
    {
      for( let i=number_a;i<=number_b;i=i+2)
        { 
          if(i%2==1)
            {i+=1}
          collection.push(i);
        }
    }
    if(number_a>number_b)
      {
        for( let i=number_a;i>=number_b;i=i-2)
          {
            if(i%2==1)
              {i-=1}
            collection.push(i);
          }
      }
      return collection;
}

module.exports = get_integer_interval_2;
